package com.ch14;

import com.ch14.config.AppConfig;
import com.ch14.service.TestService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @ClassName Main
 * @Description TODO
 * @Author Kx
 * @Date 2025/5/8 11:17
 * @Version 1.0
 */
public class Main {
    public static void main(String[] args) {
        // 读取配置类
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);

        // 获取业务层对象
        TestService testService = new TestService();

        testService.save();
    }
}
